<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<fmt:setLocale value="${empty cookie['language'].value?'zh_CN':cookie['language'].value}"/>
<fmt:setBundle basename="i18n.itilbase"/>
<c:set var="lang" value="${empty cookie['language'].value?'zh_CN':cookie['language'].value}"/>
<%
	request.setAttribute("registerLocation",request.getParameter("registerLocation"));
	request.setAttribute("contactNo",request.getParameter("contactNo"));
	request.setAttribute("recommendUser",request.getParameter("recommendUser"));
	request.setAttribute("declarationCenters",request.getParameter("declarationCenters"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title><fmt:message key="i18n.newUserReg" />-<fmt:message key="i18n.title"/></title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<link rel="shortcut icon" href="../index/favicon.png" />
<link rel="stylesheet" type="text/css" href="../styles/user/style.css" />
<link rel="stylesheet" href="../styles/style.css" />
<script type="text/javascript" src="../scripts/jquery/jquery-1.4.2.min.js"></script>
<script  type="text/javascript"  src="../scripts/common.js"></script>  
<script type="text/javascript" src="../scripts/user/common.js"></script>
<script type="text/javascript" src="../scripts/user/reguser.js"></script>


<script type="text/javascript">
$(function(){
	$('#reg_registerLocation').val('${param.registerLocation}');
	document.onkeydown = function(evt){
		var evt = window.event?window.event:evt;
		if(evt.keyCode==13){
			regSubmit();
		}
	}
	randomNo('reg_loginName');
	
	
	$('#registerLocation_aArea,#registerLocation_bArea').click(function(){
		$('#reg_contactNo').val('');
		alert('区位变更,请重新选择接点人!');
	});
	
	
	$('#reg_recommendUser').bind('blur',function(){
		$('#reg_contactNo').val('');
		alert('区位变更,请重新选择接点人!');
	});
});	
</script>
</head>
<body>
<div class="mwCurrent">
	<div class="mwCurrent_row">
		<div class="mwCurrent_logo">
			<a href="http://www.hmcft.com" target="_blank"><img src="../images/logo_${cookie['language'].value}.png" style="height: 42px;" title="HuanMao International LOGO" alt="HuanMao International LOGO" ></a>
		</div>
		<div class="mwCurrent_content">
	    <p>
	    	<a href="login.jsp"><fmt:message key="i18n.login" /></a>
	    	|
	    	<c:if test="${cookie['language'].value eq 'zh_CN'}">
	        	 <a href="javascript:setLanguage('en_US');">English</a> 
	        </c:if>
	        <c:if test="${empty cookie['language'].value or cookie['language'].value eq 'en_US'}">
	         	<a href="javascript:setLanguage('zh_CN');">中文</a>
	        </c:if>	
	   	</p>
		</div>
	</div>
</div>
<!-- 主体内容 -->
<div class="regWrap">
	<div class="registCont">
		<div class="liTitle">
        	<span></span>
         	<div class="litit"><h3><fmt:message key="i18n.newUserReg"/></h3></div>
         	<strong></strong>
     	</div>
     	<div class="regCont">
     			<form action="registerUser!saveRegiserUser.action" method="post" id="register_form">
     				<input type="hidden" value="reg1" name="loginReg">
     				<input type="hidden" name="registerUserDTO.registerLocation" id="registerLocation" value="aArea" />
     				<table width="100%">
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.userlevel" /></td>
     						<td class="rec_td2">
								<select class="regSele" id="registerLevel_reg1" name="registerUserDTO.registerLevel" >
	     							<option value="L1"><fmt:message key="L1" /></option>
	     							<option value="L2"><fmt:message key="L2" /></option>
	     							<option value="L3"><fmt:message key="L3" /></option>
	     							<option value="L4"><fmt:message key="L4" /></option>
	     							<option value="L5"><fmt:message key="L5" /></option>
	     							<%-- <option value="L6"><fmt:message key="L6" /></option>
	     							<option value="L7"><fmt:message key="L7" /></option> --%>
	     						</select>
							</td>
							<td class="rec_td3"></td>
     					</tr>
     					
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.userRegAccount" /></td>
     						<td class="rec_td2">
     							<input class="veText" name="registerUserDTO.loginName" id="reg_loginName" readonly="readonly" />
							</td>
							<td class="rec_td3">
								<span style="color:red;">&nbsp;&nbsp;*</span>&nbsp;&nbsp;<a href="javascript:randomNo('reg_loginName')">[<fmt:message key="i18n.reShengCheng"/>]</a>
							</td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.piUserName" /></td>
     						<td class="rec_td2">
     							<input class="veText" name="registerUserDTO.userName" id="reg_userName" />
							</td>
							<td class="rec_td3">
								<span style="color:red;">&nbsp;&nbsp;*</span>&nbsp;&nbsp;<fmt:message key="i18n.userNameAndBankNameTips"/>
							</td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.loginPassword" /></td>
     						<td class="rec_td2">
     							<input class="veText" type="password" value="" id="reg_password1" name="registerUserDTO.password1"/>
							</td>
							<td class="rec_td3">
								<span style="color:red;">&nbsp;&nbsp;*</span>
							</td>
     					</tr>
     					
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.cofimLoginPassword" /></td>
     						<td class="rec_td2">
     							<input class="veText" type="password" value="" id="reg_conf_password1"/>
							</td>
							<td class="rec_td3">
								<span style="color:red;">&nbsp;&nbsp;*</span>
							</td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.send2Password" /></td>
     						<td class="rec_td2">
     							<input class="veText" type="password" value="" id="reg_password2" name="registerUserDTO.password2" />
							</td>
							<td class="rec_td3">
								<span style="color:red;">&nbsp;&nbsp;*</span>
							</td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.cofimsend2Password" /></td>
     						<td class="rec_td2">
     							<input class="veText" type="password" value="" id="reg_conf_password2" class="easyui-validatebox" />
							</td>
							<td class="rec_td3"></td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.recommendUser" /></td>
     						<td class="rec_td2">
     							<input class="veText" name="registerUserDTO.recommendUser" id="reg_recommendUser"  value="${recommendUser }" onBlur="findUserNameByLoginName(this.value,'reg_show_recommendUser')" />
							</td>
							<td class="rec_td3">
								 &nbsp;&nbsp;<span id="reg_show_recommendUser" style="color:red;">*</span>
							</td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="position" /></td>
     						<td class="rec_td2">
     							<fmt:message key="i18n.left" />：<input type="radio" name="registerUserDTO.registerLocation1" id="registerLocation_aArea"  checked="checked" value="aArea" />
								<fmt:message key="i18n.right" />：<input type="radio" name="registerUserDTO.registerLocation1" id="registerLocation_bArea"  <c:if test="${registerLocation eq 'bArea' }"> checked="checked" </c:if> value="bArea" />
							</td>
							<td class="rec_td3"></td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="contactuser" /></td>
     						<td class="rec_td2">
     							<input class="veText" name="registerUserDTO.contactNo" id="reg_contactNo"  onBlur="findUserNameByLoginName(this.value,'reg_show_contactNo')" />
							</td>
							<td class="rec_td3">
								&nbsp;&nbsp;<span id="reg_show_contactNo" style="color:red;">*</span>
                            	&nbsp;&nbsp;<input type="button" style="width: auto;" value="<fmt:message key="sysAutoFindContact" />" onclick="findcontact('reg_recommendUser')">
                            	<input type="button"  style="width: auto;" value="接点人(移动版)" onclick="findcontact1('reg_recommendUser')">
                            	
								<span id="showContactNoList"></span>
							</td>
     					</tr>
     					
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.bdCenter" /></td>
     						<td class="rec_td2">
     							 <input class="veText" type="text" name="registerUserDTO.declarationCenters"  value="${declarationCenters}" id="reg_declarationCenters" onBlur="findUserNameByLoginName(this.value,'reg_show_userName')" />
							</td>
							<td class="rec_td3">
								&nbsp;&nbsp;<span id="reg_show_userName" style="color:red;">*</span>
							</td>
     					</tr>
     					
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.openUserBank"/></td>
     						<td class="rec_td2">
     							<select class="regSele" id="accountType" name="registerUserDTO.accountType" >
     								<option value="中国农业银行"><fmt:message key="i18n.abcBank"/></option>
									<option value="中国工商银行"><fmt:message key="i18n.gongBank"/></option>
									<option value="中国建设银行"><fmt:message key="i18n.ccbBank"/></option>
									<option value="中国银行"><fmt:message key="i18n.chinaBank"/></option>
									<option value="财付通"><fmt:message key="i18n.caifutong"/></option>
									<option value="支付宝">支付宝</option>
									<%-- <option value="中国银行"><fmt:message key="i18n.chinaBank"/></option>
									<option value="中国邮政"><fmt:message key="i18n.emsBank"/></option>
									<option value="中信银行"><fmt:message key="i18n.zhongxinBank"/></option>
									<option value="中国工商银行"><fmt:message key="i18n.gongBank"/></option>
									<option value="中国建设银行"><fmt:message key="i18n.ccbBank"/></option>
									<option value="中国交通银行"><fmt:message key="i18n.jiaoBank"/></option>
									<option value="中国浦发银行"><fmt:message key="i18n.pufaBank"/></option> 
									<option value="支付宝"><fmt:message key="i18n.zhifubao"/></option>--%>
								</select>
							</td>
							<td class="rec_td3">
								<span style="color:red;"><fmt:message key="i18n.top002" /></span>
							</td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.piBrankAccount"/></td>
     						<td class="rec_td2">
     							<input class="veText" type="text" id="reg_bankAccount" value="" name="registerUserDTO.bankAccount" />
							</td>
							<td class="rec_td3">
								&nbsp;&nbsp;<span style="color:red;">*</span>
							</td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.openBankAddress"/></td>
     						<td class="rec_td2">
     							<input class="veText" type="text" value="" id="openBankAddress" name="registerUserDTO.openBankAddress" />
							</td>
							<td class="rec_td3">
							</td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.piMobile"/></td>
     						<td class="rec_td2">
     							<input class="veText" type="text" id="reg_phone" value="" name="registerUserDTO.phone" />
							</td>
							<td class="rec_td3">
								&nbsp;&nbsp;<span  style="color:red;">*</span>
							</td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.piEmail"/></td>
     						<td class="rec_td2">
     							<input class="veText" type="text" value="" name="registerUserDTO.email" id="reg_email" />
							</td>
							<td class="rec_td3">
								&nbsp;&nbsp;<span style="color:red;">*</span>
							</td>
     					</tr>
     					
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.ptype"/></td>
     						<td class="rec_td2">
     							<select class="regSele" name="registerUserDTO.passwordProblem" >
	                            	<option value="我的生日" selected="selected">我的生日</option>
										<option value="我父亲的生日">我父亲的生日</option>
										<option value="我母亲的生日">我母亲的生日</option>
										<option value="我的出生地">我的出生地</option>
										<option value="我喜欢的电影">我喜欢的电影</option>
										<option value="我喜欢的明星">我喜欢的明星</option>
										<option value="您毕业于那一所大学">您毕业于那一所大学</option>
								</select>
							</td>
							<td class="rec_td3"></td>
     					</tr>
     					<tr>
     						<td class="rec_td1"><fmt:message key="i18n.answer"/></td>
     						<td class="rec_td2">
     							<input class="veText" type="text" id="reg_passwordAnswer" name="registerUserDTO.passwordAnswer" />
							</td>
							<td class="rec_td3"><label style="color:red;">&nbsp;&nbsp;* <fmt:message key="i18n.rememberSecretSecurity"/></label></td>
     					</tr>
     					<tr>
     						<td class="rec_td1"></td>
     						<td class="rec_td2">
     							<input class="btn btn-primary btn-large" type="button" value="<fmt:message key="i18n.submitReg"/>" onclick="regSubmit()" />
							</td>
							<td class="rec_td3"></td>
     					</tr>
                    
     					
     				</table>
                </form>
     	</div>
	</div>
</div> 


<footer>
                <div class="container">
                    <div class="bottom-footer">
                        <p>Copyright © 2015 HuanMao</p>
                    </div>
                    
                </div>
            </footer>
</body>
</html>